//
//  Queue.h
//  Wi-Fi Party remade-1
//
//  Created by Vieta Ken on 2021/2/26.
//

#ifndef Queue_h
#define Queue_h


#endif /* Queue_h */

#import "config.h"

@interface Queue:NSObject
{
    signed char* content;
    int reader,last_reader,writer,bufferSize;
    @public int empty,last_read_size;
    NSString *name;
}
-(id)init;
-(id)init: (int)bufferSize;
-(void)dealloc;
-(int)rawReadAndWriteTo:(signed char*)dst size:(int)size;
-(int)readAndWriteTo:(signed char*)dst size:(int)size;
-(void)writeData:(const signed char*)src size:(int)size;
-(int)canRead;
-(int)canWrite;
@end
